﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class ChuyenThuBUS
    {
        public List<ChuyenThuDTO> LayThongTinCT()
        {
            ChuyenThuDAO dao = new ChuyenThuDAO();
            return dao.LayThongTinChuyenThu() ;
        }

        public List<ChuyenThuDTO> LietKeDonHangDangThu()
        {
            ChuyenThuDAO dao = new ChuyenThuDAO();
            return dao.LietKeDonHangDangThu();
        }

        public List<ChuyenThuDTO> LietKeDonHangHoanTat()
        {
            ChuyenThuDAO dao = new ChuyenThuDAO();
            return dao.LietKeDonHangHoanTat();
        }

       public int CapNhatSoHopThieu(ChuyenThuDTO ctDTO)
        {
            ChuyenThuDAO dao = new ChuyenThuDAO();
            return dao.CapNhatSoHopThieu(ctDTO);
        }

       public List<ChuyenThuDTO> LietKeDonHangTheoNgay(ChuyenThuDTO ct)
       {
           ChuyenThuDAO dao = new ChuyenThuDAO();
           return dao.LietKeDonHangTheoNgay(ct);
       }

       public int ThemChuyenThu(ChuyenThuDTO ctDTO)
       {
           ChuyenThuDAO dao = new ChuyenThuDAO();
           return dao.ThemChuyenThu(ctDTO);
       }

    }
}
